add_symbols_versioning
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Fri, 2 Jun 2017 13:11:29 +0000 (13:11 +0000)
committerGianfranco Costamagna <locutusofborg@debian.org>
Fri, 2 Jun 2017 13:11:29 +0000 (13:11 +0000)
commitb9557d26e9bec7341df5a1e71c10426d1a8ecbb5
tree0d8aecc31450af2bbfb6031c6c3ed6cb2e09b98d
parent2a35787d07e05eb94231916c76a1bc8f2ed6556a
add_symbols_versioning

This patch adds a very simple linker script to version the lib's symbols
and thus trying to avoid crashes if an application loads two different
LLVM versions (as long as they do not share data between them).

Note that we deliberately *don't* make LLVM_3.8 depend on LLVM_3.8:
they're incompatible and the whole point of this patch is
to tell the linker that.

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Author: Lisandro Damían Nicanor Pérez Meyer <lisandro@debian.org>
Bug-Debian: https://bugs.debian.org/848368

Gbp-Pq: Name add_symbols_versioning.patch
cmake/modules/AddLLVM.cmake
tools/llvm-shlib/CMakeLists.txt
tools/llvm-shlib/simple_version_script.map [new file with mode: 0644]